package com.authine.cloudpivot.web.api.secondopen.dao;

import com.authine.cloudpivot.web.api.secondopen.domain.Monthlybudgetadjustrecord;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MonthlybudgetadjustrecordMapper{
    /**
     * 新增预算中间表数据
     *
     * @param monthlybudgetadjustrecord
     * @return
     */
    public int insertMonthlybudgetadjustrecord(Monthlybudgetadjustrecord monthlybudgetadjustrecord);

    /**
     * 根据条件查询额度中间表数据
     *
     * @param monthlybudgetadjustrecord
     * @return
     */
    public List<Monthlybudgetadjustrecord> selectBudgetInfoByParam(Monthlybudgetadjustrecord monthlybudgetadjustrecord);

    /**
     * 额度追加
     *
     * @param monthlybudgetadjustrecord
     * @return
     */
    public int zjiaBudgetAmendment(Monthlybudgetadjustrecord monthlybudgetadjustrecord);

    /**
     * 额度追减
     *
     * @param monthlybudgetadjustrecord
     * @return
     */
    public int zjianBudgetAmendment(Monthlybudgetadjustrecord monthlybudgetadjustrecord);

    /**
     * 月度预算维护扣减新增额度
     *
     * @param monthlybudgetadjustrecord
     * @return
     */
    public int adjustmentBudgetData(Monthlybudgetadjustrecord monthlybudgetadjustrecord);

    /**
     * 报销扣减预算
     *
     * @param monthlybudgetadjustrecord
     * @return
     */
    public int ReimburseBudgetData(Monthlybudgetadjustrecord monthlybudgetadjustrecord);
}